package com.ruoyi.warehousemanager.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 外库操作管理对象 j_operate
 * 
 * @author xin
 * @date 2023-06-01
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Operate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 外库操作id */
    private Long operateId;

    /** 外库操作物品id */
    @Excel(name = "外库操作物品id")
    private Long itemId;

    /** 外库操作物品数量 */
    @Excel(name = "外库操作物品数量")
    private Long itemNum;

    /** 外库所属仓库id */
    @Excel(name = "外库所属仓库id")
    private Long deptId;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date operateTime;

    /** 外库操作(0:报修,1:报废,2:收回) */
    @Excel(name = "外库操作(0:报修,1:报废,2:收回)")
    private String operateType;

    /** 备注 */
    @Excel(name = "备注")
    private String operateRemark;

    public void setOperateId(Long operateId)
    {
        this.operateId = operateId;
    }

    public Long getOperateId()
    {
        return operateId;
    }
    public void setItemId(Long itemId)
    {
        this.itemId = itemId;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getItemId()
    {
        return itemId;
    }
    public void setItemNum(Long itemNum)
    {
        this.itemNum = itemNum;
    }

    public Long getItemNum()
    {
        return itemNum;
    }
    public void setOperateTime(Date operateTime)
    {
        this.operateTime = operateTime;
    }

    public Date getOperateTime()
    {
        return operateTime;
    }
    public void setOperateType(String operateType)
    {
        this.operateType = operateType;
    }

    public String getOperateType()
    {
        return operateType;
    }
    public void setOperateRemark(String operateRemark)
    {
        this.operateRemark = operateRemark;
    }

    public String getOperateRemark()
    {
        return operateRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("operateId", getOperateId())
            .append("deptId", getDeptId())
            .append("itemId", getItemId())
            .append("itemNum", getItemNum())
            .append("operateTime", getOperateTime())
            .append("operateType", getOperateType())
            .append("operateRemark", getOperateRemark())
            .toString();
    }
}
